package com.cj.mobile.iabp.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 上传图片响应通用类
 */
public class FinancialUpload implements Parcelable {

    public FinancialUpload() {
    }

    public FinancialUpload(String url, String urlScale) {
        this.url = url;
        this.scaleUrl = urlScale;
    }

    // 原图
    private String url = "";
    // 缩略图
    private String scaleUrl = "";

    // 识别出来的文字
    private String text;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getScaleUrl() {
        return scaleUrl;
    }

    public void setScaleUrl(String scaleUrl) {
        this.scaleUrl = scaleUrl;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.url);
        dest.writeString(this.scaleUrl);
        dest.writeString(this.text);
    }

    public void readFromParcel(Parcel source) {
        this.url = source.readString();
        this.scaleUrl = source.readString();
        this.text = source.readString();
    }

    protected FinancialUpload(Parcel in) {
        this.url = in.readString();
        this.scaleUrl = in.readString();
        this.text = in.readString();
    }

    public static final Creator<FinancialUpload> CREATOR = new Creator<FinancialUpload>() {
        @Override
        public FinancialUpload createFromParcel(Parcel source) {
            return new FinancialUpload(source);
        }

        @Override
        public FinancialUpload[] newArray(int size) {
            return new FinancialUpload[size];
        }
    };
}
